// const bWineTpl = require('../views/sub/bwine.html');

// document.querySelector('.goodsList').innerHTML =bWineTpl;


import bWineTpl from '../views/sub/bwine_list.html';
import Http from '../model/http'
import http from '../model/http';

class WineList {
 
          constructor(){
                    this.render();
          }
       async render(){ 
    
           let list = (await Http.bWine()).killProList;
         //   console.log(list);

              let html = template.render( bWineTpl,{
            list
         })
          
           document.querySelector('#goodsList').innerHTML = html;
        }
}



export default new WineList() ;